#ifndef PICKPOINT_H
#define PICKPOINT_H

#include <QDialog>
#include <QPushButton>
#include <QScreen>

class PickPoint : public QDialog
{
    Q_OBJECT
public:
    PickPoint(QScreen *screen, QPoint optionPoint, WId windowId, int index, QDialog *parent = nullptr);

protected:
    void showEvent(QShowEvent *event);
    void paintEvent(QPaintEvent *event);
    void mousePressEvent(QMouseEvent *event);
    void mouseMoveEvent(QMouseEvent *event);

private:
    QScreen *screen;
    WId windowId;
    bool isSelected;
    int index;
    QPoint optionPoint;
    QPoint mousePoint;
    QPixmap fullScreenBack;
    QPixmap fullScreenDisplay;
    QPushButton *fullScreenButton;
    void conformPoint();

signals:
    void pointConfirmed(QPoint point, int index);

};

#endif // PICKPOINT_H
